<?php
require_once("conn.php");
require_once("functions.php");
//echo "<pre>";
//print_r($config);
$sql = "select * from `link` where type = 2";
$row_user = $mysql->query($sql);
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>微有趣</title>
		<meta name="keywords" content=""/>
		<meta name="description" content=""/>
		<meta name="apple-mobile-web-app-capable" content="yes"/>
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
		<link rel="stylesheet" type="text/css" href="./assets/css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="assets/css/downloads.css"/>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script>
			function changeSize() {
				var propo = $(window).width() / 640;
				$('html').css('font-size', 40 * propo + 'px');
			};
			changeSize();
			$(window).resize(function() {
				changeSize();
			});
		</script>
		<script>
			$(function(){
			//判读苹果
				function isAppleMobileDevice(){
				    return (/iphone|ipod|ipad|Macintosh/i.test(navigator.userAgent.toLowerCase()));
				}
					//判断微信
				function is_weixn(){  
				    var ua = navigator.userAgent.toLowerCase();  
				    if(ua.match(/MicroMessenger/i)=="micromessenger"){  
				         return true;
				    }
				}
				(function is_apple(){  
				    if(isAppleMobileDevice()){
				    	window.location.href = "http://<?php echo $row_user[0]['link']; ?>/weiApp/apple.php";
				    }
				})(); 
				$(".topimg").click(function(){
					if(is_weixn()){
						 $(".wechat").css("display","block");
					}else{
						window.location.href = "http://f.wangqu.me/picture/weiyue.apk";
					}
				})
			});
		</script>
	</head>
	<body>
		<div class="wrap">
			<div class="wechat" style="position: fixed;top: 0;bottom: 0;left: 0;z-index: 999;display: none;width: 100%;height: 100%;background: rgba(0,0,0,0.5);">
			<img style="width:90%;margin-left: 5%;" src="assets/images/download/live_weixin.png">
			</div>
			<div class="con">
				<div class="topimg">
					<img src="assets/images/downloads/banner.jpg" alt="图片" />
				</div>
				<div class="midimg">
					<ul class="clearfix">
						<li><img src="assets/images/downloads/4.png" alt="图片" /></li>
						<li><img src="assets/images/downloads/5.png" alt="图片" /></li>
						<li><img src="assets/images/downloads/1.jpg" alt="图片" /></li>
						<li><img src="assets/images/downloads/3.png" alt="图片" /></li>
						<li><img src="assets/images/downloads/2.jpg" alt="图片" /></li>
						<li><img src="assets/images/downloads/6.png" alt="图片" /></li>
					</ul>
				</div>
				<div class="footer">
					<h3>应用描述</h3>
					<p>
                    	微有趣是一款创新模式的阅读应用，集合生活、娱乐、社会、搞笑、体育等海量内容呈现给用户。另外在阅读的同时，还有丰富的活动、红包、福利、等奖励措施帮助用户在养成良好阅读习惯的同时获取丰厚的回报。
                	</p>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			
		</script>
	</body>
</html>
